import java.util.List;
import java.io.File;

public abstract class Model {
    private List<Point> vertices;
    private List<Face> faces;

    public Model(List<Point> _vertices, List<Face> _faces) {
	vertices = _vertices;
	faces = _faces;
    }

    class Point {
	double x, y, z;	
	public Point(double _x, double _y, double _z) {
	    x = _x;
	    y = _y;
	    z = _z;
	}
    }

    class Face {
	List<Point> vertices;
	public Face(List<Point> _vertices) {
	    vertices = _vertices;
	}
    }

    public List<Point> getVertices() {
	return vertices;
    }

    public List<Face> getFaces() {
	return faces;
    }

    public abstract File toFile(String type);
}
